<?php
	class nhomhangbs
	{
		public $MaNhomHang = 0;
		public $TenNhomHang = "";
		
		public function Add()
		{
			$db = new nhomhangdb();
			return $db->Add($this->TenNhomHang);
		}
		
		public function Delete()
		{
			$db = new nhomhangdb();
			return $db->Delete($this->MaNhomHang);
		}
		
		public function Update()
		{
			$db = new nhomhangdb();
			return $db->Update($this->MaNhomHang, $this->TenNhomHang);
		}
		
		public function GetList()
		{
			$db = new nhomhangdb();
			return $db->GetList($this->MaNhomHang, $this->TenNhomHang);
		}
		public function Find()
		{
			$db = new nhomhangdb();
			return $db->Find($this->TenNhomHang);
		}
	}
?>